package cn.e3mall.controller;

import cn.e3mall.common.utils.E3Result;
import cn.e3mall.search.service.SearchItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/index")
public class SearchController {

    @Autowired
    private SearchItemService searchItemService;

    @RequestMapping(value = "/item/import")
    public E3Result importItemList(){
        E3Result e3Result = searchItemService.importAllItems();
         return e3Result;
    }

}
